import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:get/get.dart';
import 'package:demo/views/base/base_controller.dart';

class MinePasswordController extends BaseController {
  TextEditingController oldPassController = TextEditingController();
  TextEditingController newPwdController = TextEditingController();

  // 提交
  Future<void> submit() async {
    // 提醒
    EasyLoading.showToast('修改成功');
    // 返回
    Get.back();
  }

  @override
  void onClose() {
    oldPassController.dispose();
    newPwdController.dispose();
    super.onClose();
  }
}
